﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class NPc3:NPC
    {
        private string c;

        public string C
        {
            get { return this.c; }
            set { this.c = value; }
        }
        public NPc3(string name, NPCType type, string c) : base(name, type)
        {
            this.c = c;
        }
        public override void Speak()
        {
            Console.WriteLine("{0}:出没{1}",this.Name,this.c);
        }
    }
}
